package com.brush.brushcommon.common.sys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.brush.brushcommon.common.BasicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统通知表
 * </p>
 *
 * @author debug
 * @since 2024-07-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_message")
@Schema(name = "Message对象", description = "系统通知表")
public class Message  extends BasicEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "发送时间")
    private LocalDateTime sendTime;

    @Schema(description = "公告标题")
    private String title;

    @Schema(description = "公告描述")
    private String desc;

    @Schema(description = "接收对象（0：全体用户，1：其他用户，默认：0）")
    private Byte receiveUid;

    @Schema(description = "用户是否读过此消息（0：未读，1：已读）")
    private Boolean hadRead;

    @Schema(description = "创建人")
    private String gmtFounder;
}
